<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../src/load.js"></script>
<!--    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>-->
</head>
<body>
    <button id="load">加载</button>

    <script>
        $(() => {
            document.querySelector("#load").click(() => {
                var start = new Date();
                console.log("开始加载", start)
                loadCaptchaScript({
                    scriptUrls: [
                        "http://libs.baidu.com/jquery/2.0.0/jquery.min.js",
                        "https://cdn.bootcdn.net/ajax/libs/crypto-js/4.1.1/crypto-js.min.js",
                        "https://cdn.bootcdn.net/ajax/libs/jsencrypt/3.0.0-rc.1/jsencrypt.js",
                        "https://cdn.bootcdn.net/ajax/libs/jsencrypt/3.0.0-rc.1/jsencrypt.js",
                        "https://minio.tianai.cloud/public/static/captcha/js/tac.min.js?t=20231212"
                    ],
                    cssUrls:[
                        "https://minio.tianai.cloud/public/static/captcha/css/tac.css?t=20231110"
                    ],
                    timeout: 5000
                }, () => {
                    console.log("加载成功", new Date() - start);
                    console.log(window.TAC);
                })
            })

        });
    </script>
</body>
</html>
